<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>ES后台管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="__ADMIN__/css/frame.css" media="all" />
	<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.9.1.min.js"></script>
    
	
	
</head>
<body class="childrenBody" style="padding-bottom:40px;">

<blockquote class="layui-elem-quote news_search">

        <div class="layui-inline">
		
<ob_link><a class="layui-btn layui-btn-normal Add_btn" data-title="添加" data-url="<?php echo es_url('topiccateAdd'); ?>"><i class="fa fa-plus"></i> 新 增</a></ob_link>
			
</div>
<div class="layui-inline">
			<ob_link><a class="layui-btn layui-btn-danger batchDel" data-url="<?php echo es_url('topiccateAlldel'); ?>">批量删除</a></ob_link>
		</div>
</blockquote>
	<div class="layui-form users_list">
	  	<table class="layui-table">
				<thead>
                    <tr>
                      <?php if(!empty($list)): ?>
					<th width="5%" style="text-align:center"><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose" id="allChoose"></th>
					 <?php endif; ?>
                        <th>ID</th>
                        <th>排序</th>
                        <th>分类名称</th>
                         <th>创建时间</th>
                        <th>更新时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                       <?php if(!empty($list)): ?>
                  <tbody class="users_content">
                    <?php if(is_array($list)): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>
                    <tr>
                        <td width="5%" style="text-align:center"><input type="checkbox" name="checked" lay-skin="primary" lay-filter="choose" value="<?php echo $vo['id']; ?>"></td>
                          <td><?php echo $vo['id']; ?></td>
                          <td><?php echo $vo['sort']; ?></td>
                          <td><?php echo $vo['name']; ?></td>
                          <td><?php echo date("Y-m-d H:i:s",$vo['create_time']); ?></td>
                          <td><?php echo date("Y-m-d H:i:s",$vo['update_time']); ?></td>
                          <td><input type="checkbox" data-url="<?php echo es_url('topiccateCstatus',['id'=>$vo['id']]); ?>" name="status" lay-skin="switch" lay-text="启用|禁用" lay-filter="switchTest"  value="<?php echo $vo['status']; ?>" <?php echo $vo['status']==1 ? 'checked' : ''; ?>></td>
                        <td>
                               <ob_link><a data-title="编辑"  data-url="<?php echo es_url('topiccateEdit',['id'=>$vo['id']]); ?>" class="layui-btn layui-btn-xs users_edit"><i class="fa fa-edit"></i>编辑</a></ob_link>
                     
                      <ob_link><a class="layui-btn layui-btn-danger layui-btn-xs users_del" href="javascript:;"  data-url="<?php echo es_url('topiccateDel', array('id' => $vo['id'])); ?>"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                 
                      </td>
                    </tr>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                    </tbody>
                      <?php else: ?>
       <tbody class="users_content">
       <tr class="odd"><td colspan="7" class="text-center" valign="top"><?php echo webconfig('empty_list_describe'); ?></td></tr>
       </tbody>
      <?php endif; ?>
                </table>
	</div>
			

  
<div class="btable-paged" >
<div class="layui-main">
	<?php echo $page; ?>
</div>
</div>
 


	
	
	<script type="text/javascript" src="__ADMIN__/js/main.js"></script>
		
	
<!--页面JS脚本-->

</body>
</html>